<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>外采已结算提成列表</title>

<body class="withvernav">
<div class="bodywrapper">
{{include file='/public/leftmenu.tpl'}}
<div class="centercontent tables">
  <div class="pageheader notab">
    <h1 class="pagetitle">外采已结算提成列表</h1>
   
  
    
     </div>
  <!--pageheader-->
  
  
  <div id="contentwrapper" class="contentwrapper"> 
    <!--搜索栏-->
    <form class="stdform stdform2" method="get" id="search" action="/datareport/ajaxbutton">
    <input type="hidden" name="op" value="historyList">
    <input type='hidden' name='if_csv' id='if_csv'>

      <div class="tableoptions"> 
        开发者:
        <select name="protector" id="protector" class="selection select2_group" style="width:100px;" >
            <option value="0">请选择</option>
            {{foreach from=$userlist item=res key=key}}
            <option value="{{$res}}" {{if $developer eq $res}} selected{{/if}}>{{$res}}</option>
            {{/foreach}}
        </select>
      结算日期：
        <input type="text"  name="starttime" value="{{$starttime}} " onClick="WdatePicker({dateFmt:'yyyy-MM-dd '})" class="width100 hasDatepicker" /> - <input type="text"  name="endtime" value="{{$endtime}} " onClick="WdatePicker({dateFmt:'yyyy-MM-dd '})" class="width100 hasDatepicker" />
        
     
        
       关键词: <input type="text" name="sku" id="sku" class="width100" value="{{$sku}}" placeholder="SKU" />
       
           <!--  <select name="protector" id="protector" class="selection select2_group" style="width:100px;" >
            <option value="0">请选择</option>
            {{foreach from=$userlist item=res key=key}}
            <option value="{{$res}}" {{if $developer eq $res}} selected{{/if}}>{{$res}}</option>
            {{/foreach}}
        </select>      -->
        &nbsp;
        <button class="btn btn_orange btn_search radius50">Search</button>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
         <button onclick="ouputcsv()" class="stdbtn btn_black">导出</button>
      <br><br>总利润(RMB)：<font color=red>{{$allamount}}</font>&nbsp;&nbsp;&nbsp;&nbsp;总提成(RMB)：<font color=red>{{$alllastMoney}}</font>
      {{if $alllastrefundMoney}}
       &nbsp;&nbsp;&nbsp;&nbsp;总退款：<font color=red>{{$alllastrefundMoney}}</font>
      {{/if}}
       {{if $alloverrefundMoney>0}}
       &nbsp;&nbsp;&nbsp;&nbsp; 已结退款：<font color=red>{{$alloverrefundMoney}}</font>
       {{/if}}
       
        {{if $nofundMoney>0}}
       &nbsp;&nbsp;&nbsp;&nbsp; 未结算退款：<font color=red>{{$nofundMoney}}</font>
       {{/if}}
       
        &nbsp;&nbsp;&nbsp;&nbsp; 应得提成(总提成-已结退款)：<font color=red>{{$moneyc}}</font>
        
      </div>
    </form>
    <!--搜索栏结束-->
    
    <table cellpadding="0" cellspacing="0" border="0" class="stdtable">
      <colgroup>
      <col class="con1" />
      <col class="con0" />
      <col class="con1" />
      <col class="con0" />
      <col class="con1" />
      <col class="con0" />
      <col class="con1" />
      </colgroup>
      <thead>
        <tr>
          <th class="head0">商品编号</th>
          <th class="head1">结算日期 </th>
          <th class="head0">订单编号</th>
          <th class="head0">发货时间</th>
          <th class="head1">提成金额</th>
         
          
          <th class="head0">总利润</th>
          <th class="head0">提成率</th>
          <th class="head0">开发人员</th>
       
        </tr>
      </thead>
      <tbody>
      
      {{foreach from=$list item=li key=key}}
      <tr>
        <td><a href="/product/productlist?other={{$li.sku}}" target="_blank">{{$li.sku}}</a>{{if $li.isrefundstatus==1}}
        	<img src="/fuman/images/tui.jpg">
        {{/if}}</td>
         <td class="center">{{$li.cutoff_time}}</td>
        <td class="center">
          {{if $li.iscome==2}}
              	<a href="/order/editFBAorder?order_id={{$li.order_id}}" target="_blank">{{$li.order_sn}}</a>
              {{else}}
              	<a href="/orderlist/editorder?order_id={{$li.order_id}}" target="_blank">{{$li.order_sn}}</a>
              {{/if}}
        </td>
        <td>{{$li.shipping_time}} </td>
        <td>{{$li.lastMoney}}</td>
       
       
        <td class="center">{{$li.allmoney}}</td>
        <td class="center">{{if $li.isoff==0}}10%{{else}}1%{{/if}}</td>
        <td class="center">{{$li.protector}}</td>
  
      </tr>
      {{/foreach}}
        </tbody>
      
    </table>
    <div class="page">{{$pageList}} 计{{$total}}条记录，共{{$totalpage}}页</div>
    <br />
    <br />
  </div>
</div>
<!--bodywrapper-->
<script type="text/javascript">
function ouputcsv()
{

	$("#if_csv").val(1);
	$("#search").submit();
}


</script>

</body>
</html>